from test import Z_test02
json = {"addressId":"867bf183c17b4ff5b8114dc146a15cd2",
                "couponId":"",
                "products":[
                    {"skuId":"2d82eb203c1348a097aff1fdd607d2b5",
                     "quantity":"1"}]}
value = 66
excel_int=Z_test02.test02()
len =len(excel_int)

if len ==1:
    b01 = excel_int[0]
    json[b01] = value
elif len ==2:
    b01 = excel_int[0];b02 = excel_int[1]
    json[b01][b02] = value
elif len ==3:
    b01 = excel_int[0];b02 = excel_int[1];b03 = excel_int[2]
    json[b01][b02][b03] = value
print(json)